package com.hnevc.cnlizhimaomxbc;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;

public class EatActivity extends AppCompatActivity {
    private ImageView first_page_tu;
    private ImageView order_form_tu;
    private ImageView me_tu;
    private ImageView bin_tu;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_eat);
        initView();
        initData();
        initEvent();
    }
    private void initView(){
        first_page_tu = (ImageView) findViewById(R.id.first_page_tu);
        order_form_tu = (ImageView) findViewById(R.id.order_form_tu);
        me_tu = (ImageView) findViewById(R.id.me_tu);
        bin_tu = (ImageView)findViewById(R.id.bin_tu);

    }
    private void initData(){

    }
    private void initEvent(){
        first_page_tu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(EatActivity.this,HomeActivity.class);
                startActivityForResult(intent,1);
            }
        });
        bin_tu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(EatActivity.this, DinActivity.class);
                startActivityForResult(intent,1);
            }
        });
        me_tu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(EatActivity.this,MeActivity.class);
                startActivityForResult(intent,1);
            }
        });

    }
}
